<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../MasterPages/Dialog.Master" CodeBehind="ChangeOrderStatus.aspx.cs" Inherits="UCommerce.Web.UI.Orders.ChangeOrderStatus" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeaderLabel" runat="server">
    <asp:Localize ID="Localize1" runat="server" meta:resourceKey="Header" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentArea" runat="server">
    <asp:PlaceHolder runat="server" ID="ChangeStatusPlaceHolder">
        <div style="margin: 10px;">
            <h3>
                <span>
                    <asp:Localize id="Localize8" runat="server" meta:resourcekey="Header" />
                </span>
            </h3>
            <p class="guiDialogTiny">
                <asp:Localize ID="Localize2" runat="server" meta:resourceKey="SubHeader" />
            </p>
        </div>

        <div class="propertyPane">
            <div class="propertyItem">
                <div class="propertyItemHeader" style="min-width: 100px;">
                    <asp:Localize ID="Localize3" runat="server" meta:resourceKey="CurrentStatus"/>
                </div>
                <div class="propertyItemContent" style="width:60%;">
                    <%# PurchaseOrder.OrderStatus.Name %>
                </div>
                <div class="propertyItem">
                    <div class="propertyItemHeader" style="min-width: 100px;">
                        <asp:Localize ID="Localize4" runat="server" meta:resourceKey="NewStatus" />
                    </div>
                    <div class="propertyItemContent" style="width:60%;">
                        <asp:DropDownList runat="server" ID="NewStatusDropDownList" DataValueField="OrderStatusId" DataTextField="Name" CssClass="mediumWidth" Style="margin-top: 0px"></asp:DropDownList>
                    </div>
                </div>
            </div>
            <div class="propertyPaneFooter">-</div>
        </div>

        <div style="margin: 10px;">
            <asp:Button ID="SaveButton" runat="server" meta:resourceKey="SaveButton" OnClick="SaveButton_Clicked" />
            <em>or</em>
            <a href="#" onclick="UCommerceClientMgr.closeModalWindow();" style="color: blue; cursor: hand">Cancel</a>
        </div>
    </asp:PlaceHolder>

    <asp:PlaceHolder runat="server" ID="NoAvailableStatusPlaceHolder">
        <div style="margin: 10px;">
            <h3>
                <asp:Localize ID="Localize5" runat="server" meta:resourceKey="Header" />
            </h3>
            <div>
                <p class="guiDialogTiny">
                    <asp:Localize ID="Localize6" runat="server" meta:resourceKey="SubHeader" />
                </p>
            </div>
            <asp:Localize ID="Localize7" runat="server" meta:resourceKey="NoStatus" />
        </div>
    </asp:PlaceHolder>

</asp:Content>
